package com.hanserwei.community.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hanserwei.community.entity.po.ParkingSpace;
import com.hanserwei.community.entity.request.parking.ParkingSpaceQueryRequest;
import com.hanserwei.community.entity.request.parking.ParkingSpaceSaveRequest;
import com.hanserwei.community.entity.vo.ParkingSpaceVO;

public interface ParkingSpaceService extends IService<ParkingSpace> {

    Page<ParkingSpaceVO> pageParkingSpaces(ParkingSpaceQueryRequest request);

    ParkingSpaceVO getParkingSpaceDetail(Integer id);

    boolean createParkingSpace(ParkingSpaceSaveRequest request);

    boolean updateParkingSpace(Integer id, ParkingSpaceSaveRequest request);

    QueryWrapper<ParkingSpace> buildQueryWrapper(ParkingSpaceQueryRequest request);
}
